import request from '@/utils/request'

export function getBannerApi(params = {}) {
  // 逻辑是默认为1  商品为2
  const { distributionSite = '1' } = params
  return request({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

export function findNewAPI() {
  return request({
    url: '/home/new'
  })
}
export function findHotAPI() {
  return request({
    url: '/home/hot'
  })
}

export function findGoodsAPI() {
  return request({
    url: '/home/goods'
  })
}
